package com.example.model.check_in;

/**
 * 
 * @TableName check_in_guest
 */
public class CheckInGuest {
    /**
     * 
     */
    private Long checkInId;

    /**
     * 
     */
    private String guestName;

    /**
     * 
     */
    private String phone;

    /**
     * 
     */
    private String idCard;

    /**
     * 
     */
    public Long getCheckInId() {
        return checkInId;
    }

    /**
     * 
     */
    public void setCheckInId(Long checkInId) {
        this.checkInId = checkInId;
    }

    /**
     * 
     */
    public String getGuestName() {
        return guestName;
    }

    /**
     * 
     */
    public void setGuestName(String guestName) {
        this.guestName = guestName;
    }

    /**
     * 
     */
    public String getPhone() {
        return phone;
    }

    /**
     * 
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 
     */
    public String getIdCard() {
        return idCard;
    }

    /**
     * 
     */
    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CheckInGuest other = (CheckInGuest) that;
        return (this.getCheckInId() == null ? other.getCheckInId() == null : this.getCheckInId().equals(other.getCheckInId()))
            && (this.getGuestName() == null ? other.getGuestName() == null : this.getGuestName().equals(other.getGuestName()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getIdCard() == null ? other.getIdCard() == null : this.getIdCard().equals(other.getIdCard()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCheckInId() == null) ? 0 : getCheckInId().hashCode());
        result = prime * result + ((getGuestName() == null) ? 0 : getGuestName().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getIdCard() == null) ? 0 : getIdCard().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", checkInId=").append(checkInId);
        sb.append(", guestName=").append(guestName);
        sb.append(", phone=").append(phone);
        sb.append(", idCard=").append(idCard);
        sb.append("]");
        return sb.toString();
    }
}